﻿using System.Drawing;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace zzzmapdata
{

    public class MapData
    {
        /// <summary>
        /// 数据
        /// </summary>
        public Dictionary<string, Node> data = new Dictionary<string, Node>();

        public MapData()
        {

        }
        public void IniData()
        {
            data.Clear();
            string name = "六分街";
            Node node = new Node()
            {
                color = Color.Gray,
                floor = 1,
                locationx = 0,
                locationy = 0,
                height = 1000,
                index = 0,
                name = name,
                nodeType = EnumNodeType.地图,
                width = 1000,
                children = new List<Node>()
            };
            node.children.Add(new("停车场", 100, 100, 0, 0, Color.Beige));
            node.children.Add(new("改装店", 100, 100, 100, 0, Color.Beige));
            node.children.Add(new("录像店", 100, 100, 100, 100, Color.Beige));
           
            node.children.Add(new("拉面", 100, 100, 100, 220, Color.Beige));
          
            node.children.Add(new("咖啡", 100, 100, 100, 340, Color.Beige));
            node.children.Add(new("玩具店", 100, 100, 100, 440, Color.Beige));
         
            node.children.Add(new("地铁", 100, 200, 0, 440, Color.Beige));
        
            //node.children.Add(new("路", 100, 100, 10, 10, Color.Beige));
           

            node.children.Add(new("音像店", 100, 100, 220, 100, Color.Beige));
            node.children.Add(new("报刊亭", 10, 10, 220, 210, Color.Beige));
            node.children.Add(new("大白", 10, 10, 240, 210, Color.Beige));
            node.children.Add(new("电玩店", 100, 100, 220, 220, Color.Beige));
            node.children.Add(new("杂货", 100, 100, 220, 350, Color.Beige));
            node.children.Add(new("桶", 10, 10, 220, 450, Color.Beige));

            data.Add(name, node);
            name = "光印广场";
            node = new Node()
            {
                color = Color.Gray,
                floor = 1,
                locationx = 0,
                locationy = 0,
                height = 1000,
                index = 0,
                name = name,
                nodeType = EnumNodeType.地图,
                width = 1000,
            };
            data.Add(name, node);
        }
    }
}
